﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace JRBase
{
    public abstract class Actor : Collideable
    {
        protected Sprite sprite;
        protected float weight;
        protected Rectangle initRectangle;
        
        public Sprite Sprite 
        {
            get { return sprite; }
        }

        public float Weight
        {
            get { return weight; }
        }

        public void Initialize(Sprite sprite, Rectangle rectangle, float weight)
        {
            base.Initialize(rectangle);
            this.initRectangle = rectangle;
            this.sprite = sprite;
            this.weight = weight;
        }
        public abstract void Update(GameTime gameTime, Vector2 drawPosition);
        public abstract void Draw(SpriteBatch spriteBatch);
    }
}
